package com.xky.example_student.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "用户信息管理")
@TableName("user")
public class User {
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    @TableField("stu_tea_id")
    private String stuteaid;
    
    @TableField("username")
    private String username;
    
    @TableField("password")
    private String password;
    @TableField("real_name")
    private String realName;
    
    @TableField("role")
    private String role;
    
    @TableField("can_edit_profile")
    private Boolean canEditProfile;
    
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
